package other_其他模式.business_delegate_pattern_业务代表模式;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: hihi
 * @Date: 2020/07/10/10:38
 * @Description:
 */
public class BusinessesDelegate {
	private BusinessesService businessesService;
	private BusinessesLookUp businessesLookUp = new BusinessesLookUp();

	private String type;

	public void setType(String type) {
		this.type = type;
	}

	public BusinessesDelegate(String type) {
		this.type = type;
	}

	public void doTask() {
		businessesLookUp.getBusinessesService(type).doProcessing();
	}
}
